package com.ktgj.flight.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 机票订单辅营产品对象 flight_order_assist
 * 
 * @author ruoyi
 * @date 2022-04-28
 */
public class FlightOrderAssist implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 辅营产品名称 */
    @Excel(name = "辅营产品名称")
    private String name;

    /** 辅营产品价格 */
    @Excel(name = "辅营产品价格")
    private BigDecimal price;

    /** 辅营产品id */
    @Excel(name = "辅营产品id")
    private Long assistProductId;

    /** 状态，normal正常，refund已退款，wait等待，fail失败 */
    @Excel(name = "状态，normal正常，refund已退款，wait等待，fail失败")
    private String status;

    /** 机票订单明细id */
    @Excel(name = "机票订单明细id")
    private Long orderInfoTicketsId;

    /** 保险类型 */
    @Excel(name = "保险类型")
    private String insType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setAssistProductId(Long assistProductId) 
    {
        this.assistProductId = assistProductId;
    }

    public Long getAssistProductId() 
    {
        return assistProductId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public Long getOrderInfoTicketsId() {
        return orderInfoTicketsId;
    }

    public void setOrderInfoTicketsId(Long orderInfoTicketsId) {
        this.orderInfoTicketsId = orderInfoTicketsId;
    }

    public String getInsType() {
        return insType;
    }

    public void setInsType(String insType) {
        this.insType = insType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("assistProductId", getAssistProductId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("orderInfoTicketsId", getOrderInfoTicketsId())
            .append("insType", getInsType())
            .toString();
    }
}
